package com.mdd.front.service.yangyangLeadingEnterprise;

import com.mdd.common.core.PageResult;
import com.mdd.common.entity.yangyangLeadingEnterprise.dto.AppCourseDTO;
import com.mdd.common.entity.yangyangLeadingEnterprise.param.AppCourseParam;
import com.mdd.front.validate.common.PageValidate;
import com.mdd.front.validate.yangyangLeadingEnterprise.TAppCourseCreateValidate;
import com.mdd.front.validate.yangyangLeadingEnterprise.TAppCourseSearchValidate;
import com.mdd.front.validate.yangyangLeadingEnterprise.TAppCourseUpdateValidate;
import com.mdd.front.vo.yangyangLeadingEnterprise.TAppCourseDetailVo;
import com.mdd.front.vo.yangyangLeadingEnterprise.TAppCourseListedVo;

import java.util.List;

/**
 * 课程服务接口类
 * @author LikeAdmin
 */
public interface ITAppCourseService {

    /**
     * 课程列表
     *
     * @author LikeAdmin
     * @param pageValidate 分页参数
     * @param searchValidate 搜索参数
     * @return PageResult<TAppCourseListedVo>
     */
    PageResult<TAppCourseListedVo> list(PageValidate pageValidate, TAppCourseSearchValidate searchValidate);

    /**
     * 课程详情
     *
     * @author LikeAdmin
     * @param id 主键ID
     * @return TAppCourseDetailVo
     */
    TAppCourseDetailVo detail(Integer id);

    /**
     * 课程新增
     *
     * @author LikeAdmin
     * @param createValidate 参数
     */
    void add(TAppCourseCreateValidate createValidate);

    /**
     * 课程编辑
     *
     * @author LikeAdmin
     * @param updateValidate 参数
     */
    void edit(TAppCourseUpdateValidate updateValidate);

    /**
     * 课程删除
     *
     * @author LikeAdmin
     * @param id 主键ID
     */
    void del(Integer id);

    /**
     * 商学院---课程列表
     * @param param
     * @return
     */
    List<AppCourseDTO> selecList(AppCourseParam param);
}
